Create a Dimensional Model

Create a physical model in Quest Data Modeler and assign dimensional roles to distinguish sales facts, their dimensions, and related outriggers. This walkthrough uses a Retail Sales Analysis model to show the setup, table roles, and relationships.

Scenario: Retail Sales Analysis

You need to analyze total quantity sold and revenue after discount by customer, product, store, and date. Define the grain of SALES as one product line within a sales transaction. Each row represents one sales line, not an entire transaction or a daily total.

The model contains the following tables:

  • SALES: The fact table uses SALES_LINE_ID to identify each sales line and records its quantity sold in QUANTITY_SOLD and revenue after discounts in NET_SALES_AMOUNT.

  • CUSTOMER, PRODUCT, STORE, and TIME: Dimensions that describe who purchased, what sold, where the sale occurred, and when it occurred.

  • DISTRICT and REGION: Outriggers that hold geographic details related to STORE.

Start with the fact table and its four dimensions. Adding DISTRICT and REGION as separate tables introduces a snowflaked part of the STORE dimension. For a pure star schema, keep district and region descriptions in STORE instead.

Create the Model

  1. On the Overview page, under Quick Actions, select New Model.

    Overview page with New Model available under Quick Actions.

    The New Model dialog opens.

    New Model dialog with Model Name, Model Type, Database, and Version fields.

  2. Enter the model name. For example, Retail Sales Analysis.

  3. Select the model type and database. For example, Physical and Snowflake. Select a version if the database requires one.

  4. Select Create Model.

    The model opens in Diagram View with an empty canvas.

    Diagram View with an empty canvas and the model menu open, showing Properties.

Note: Snowflake is the target database in this example. The database choice does not determine whether your dimensional design is a star schema or a snowflake schema.

Enable Dimensional Modeling

  1. In Model Explorer, select next to the model name to open the menu, and then select Properties.

    Open Model Properties Menu

    The Quick Editor opens.

    Model General tab with Is Dimensional cleared and Physical Notation set to IDEF1x.

    Note: For logical-physical models, switch to the Physical view before enabling dimensional modeling.

  2. On the General tab, under Modeling Features, select Is Dimensional. In the Physical Notation drop-down list, select Data Warehousing.

    Dimensional appears in the model view selector on the right side of the header bar.

    General tab with Is Dimensional selected and Physical Notation set to Data Warehousing.

  3. Select Diagram View to return to the canvas.

The physical model now supports dimensional notation and table-role assignments.

Add Tables and Columns

  1. On the diagram toolbar, select Add Table icon and select a location on the canvas.

    Diagram View with an empty canvas and the model menu open, showing Properties.

    The New Table dialog opens.

    New Table panel with SALES as the table name and empty primary-key and non-primary-key rows.

  2. In the Table Name field, enter SALES.

    The SALES table is added.

    Diagram View with an empty SALES table on the canvas.

  3. Repeat these steps to create the CUSTOMER, PRODUCT, STORE, TIME, DISTRICT, and REGION tables.

  4. Double-click a table to open Quick Editor and use the Columns tab to add its descriptive columns or measures. You can also use AI Assistance in the right pane to add tables and columns.

    Qucik Editor displaying the Column tab

    Suggested additions for this example include:

    • SALES: SALES_LINE_ID is the primary key that uniquely identifies each sales line. Add QUANTITY_SOLD and NET_SALES_AMOUNT as non-primary-key columns to record the quantity sold and revenue after discounts for each line.

    • CUSTOMER: CUSTOMER_NAME.

    • PRODUCT: PRODUCT_NAME and CATEGORY_NAME.

    • STORE: STORE_NAME.

    • TIME: CALENDAR_DATE, CALENDAR_DAY.

    • DISTRICT: DISTRICT_NAME.

    • REGION: REGION_NAME.

    • Diagram View with seven unconnected tables and their columns.

    Record QUANTITY_SOLD and NET_SALES_AMOUNT for each sales line, not the transaction totals repeated on every line. Use numeric data types with precision and scale appropriate to your quantities and monetary values.

Create relationships before manually adding their foreign-key columns to the child tables. This avoids separate manually defined columns alongside the foreign keys migrated by the relationships.

Assign Roles and Update Types

  1. Double-click SALES to open Quick Editor.

  2. On the Dimensional tab, in the Dimensional Notation Role Type list, select Fact.

    SALES Dimensional tab with role type Fact and no update type selected.

  3. Open CUSTOMER and select Dimension in the Dimensional Notation Role Type list, and then select Type 2 in the Dimensional Notation Update Type list.

    CUSTOMER Dimensional tab with role type Dimension and update type Type 2.

  4. Assign Dimension to PRODUCT, STORE, and TIME.

    For this design, use Type 2 for PRODUCT and STORE if reports must retain their historical descriptions. Use Fixed for TIME when its calendar definitions do not change. Use Type 1 instead of Type 2 when values can change but only the current value is required.

  5. Open DISTRICT, select Outrigger in the Dimensional Notation Role Type list, and then select Type 2 as the update type if historical district details are required.

    DISTRICT Dimensional tab with role type Outrigger and update type Type 2.

  6. Assign Outrigger to REGION also and choose an update type that matches its history requirements.

  7. Return to Diagram View.

    Diagram View with seven unconnected tables and their columns.

For more information about Dimensional Notation Update Type, refer to the Dimension Update Types section.

Enable Dimensional Notation in the Diagram

Display dimensional icons in the diagram to identify fact, dimension, and outrigger tables visually. This diagram setting controls the display of the icons; it does not change the roles assigned to the tables.

  1. In Model Explorer, expand ER Diagrams and open the menu next to your diagram.

    The diagram menu includes Properties.

    ER diagram menu with Properties available and the diagram's Quick Editor visible.

  2. Select Properties to open the diagram's Quick Editor.

  3. Select the Table tab.

  4. Under Table Display Options, select Display Dimensional Icon.

    Diagram Quick Editor Table tab with Display Dimensional Icon selected under Table Display Options.

  5. Select Diagram View to view the dimensional icons to the left of table names.

    Diagram View with dimensional role icons beside all seven tables.

The diagram now displays icons that distinguish the tables' dimensional roles.

Connect Dimensions and Outriggers

Use non-identifying relationships so each child table retains its own primary key. The parent's key becomes a foreign key in the child without becoming part of the child's primary key.

  1. On the diagram toolbar, open the relationship-type list and select Non-Identifying. For detailed steps, see Create Relationships and Domains.

  2. Select CUSTOMER as the parent and drag to SALES as the child. A relationship connects the tables, and CUSTOMER_ID appears as a foreign key in SALES.

    Diagram View with CUSTOMER connected to SALES and CUSTOMER_ID as a foreign key.

  3. Create non-identifying relationships from PRODUCT, STORE, and TIME to SALES. Use each dimension as the parent and SALES as the child.

    SALES should reference CUSTOMER_ID, PRODUCT_ID, STORE_ID, and TIME_ID, with SALES_LINE_ID remaining its primary key.

  4. Create a non-identifying relationship from DISTRICT to STORE, with DISTRICT as the parent.

  5. Create a non-identifying relationship from REGION to STORE, with REGION as the parent.

    STORE now references DISTRICT_ID and REGION_ID while retaining STORE_ID as its primary key. Each outrigger describes STORE rather than connecting directly to SALES.

    The following diagram illustrates the relationship layout during construction.

    Diagram View with dimensions connected to SALES and outriggers connected to STORE.

If a dimensional-conformance warning appears, review the relationship direction and the table roles before proceeding. A direct outrigger-to-fact relationship or a fact-to-dimension relationship can trigger a warning. Select Cancel to review an unintended relationship.

The resulting design connects sales-line facts to their customer, product, store, and time context. Separate district and region tables provide a snowflaked extension of STORE.

For background on dimensional roles and schema structures, refer to the Dimensional Modeling topic.